/* js for add customer */
	$(document).ready(function() {
		
		// form validation
	    $("#register-form").validate({
	    
	        // validation rules
	        rules: {
	        	"customer.customerName": "required",
	            "customer.loginId": "required",
	            "customer.email": {
	                required: true,
	                email: true
	            },
	            "customer.password": {
	                required: true,
	                minlength: 5
	            }
	        },
	        
	        // validation error messages
	        messages: {
	        	"customer.customerName": "Please enter your name",
	        	"customer.loginId": "Please enter your login id",
	            "customer.email": "Please enter a valid email address",
	            "customer.password": {
	                required: "Please provide a password",
	                minlength: "Your password must be at least 5 characters long"
	            },
	            agree: "Please accept our policy"
	        },
	        
	        submitHandler: function(form) {
	            form.submit();
	        }
	    });
		
	});